package com.ashin.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: Ashin
 * @Date: 2021/4/23
 * @Description: com.ashin.controller
 * @Version: 1.0.0
 */
@RestController
@RefreshScope
public class HelloNacosController {

    @Value("${spring.application.name}")
    private String name;

    @Value("${test1}")
    private String test;


    private List<String> whiteList;


    @GetMapping("/get")
    public Object get() {
        System.out.println(test);
        System.out.println(whiteList);
        return test;
    }


}
